<html xmlns:th="http://www.thymeleaf.org">
<head th:fragment="header">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" th:href="@{/favicon.ico}">
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
    <link th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
    <!-- bootstrap-table 表格插件样式 -->
    <link th:href="@{/ajax/libs/bootstrap-table/bootstrap-table.min.css}" rel="stylesheet"/>
    <link th:href="@{/ajax/libs/bootstrap-treetable/bootstrap-treetable.css}" rel="stylesheet"/>
    <!--summernote-->
    <link th:href="@{/ajax/libs/summernote/summernote.css}" rel="stylesheet"/>
    <link th:href="@{/ajax/libs/summernote/summernote-bs3.css}" rel="stylesheet"/>

    <link th:href="@{/css/animate.css}" rel="stylesheet"/>
    <link th:href="@{/css/style.css}" rel="stylesheet"/>
    <link th:href="@{/ajax/libs/select/select2.css}" rel="stylesheet"/>
    <link th:href="@{/project/css/ry-ui.css}" rel="stylesheet"/>
</head>
<head th:fragment="header_normal">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" th:href="@{/favicon.ico}">
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
    <link th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
    <!-- bootstrap-table 表格插件样式 -->
    <link th:href="@{/ajax/libs/bootstrap-table/bootstrap-table.min.css}" rel="stylesheet"/>
    <link th:href="@{/css/animate.css}" rel="stylesheet"/>
    <link th:href="@{/ajax/libs/select/select2.css}" rel="stylesheet"/>
    <link th:href="@{/project/css/ry-ui.css}" rel="stylesheet"/>
    <link th:href="@{/project/css/main.css}" rel="stylesheet"/>
    <link th:href="@{/project/css/reset.css}" rel="stylesheet"/>

</head>
<div th:fragment="footer">
    <script th:src="@{/js/jquery.min.js}"></script>
    <script th:src="@{/js/bootstrap.min.js}"></script>

    <!-- bootstrap-table 表格插件 -->
    <script th:src="@{/ajax/libs/bootstrap-table/bootstrap-table.min.js}"></script>
    <script th:src="@{/ajax/libs/bootstrap-table/locale/bootstrap-table-zh-CN.min.js}"></script>
    <script th:src="@{/ajax/libs/bootstrap-table/extensions/mobile/bootstrap-table-mobile.min.js}"></script>
    <script th:src="@{/ajax/libs/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.min.js}"></script>
    <!-- jquery-validate 表单验证插件 -->
    <script th:src="@{/ajax/libs/validate/jquery.validate.min.js}"></script>
    <script th:src="@{/ajax/libs/validate/messages_zh.min.js}"></script>
    <script th:src="@{/ajax/libs/validate/jquery.validate.extend.js}"></script>
    <!-- jquery-validate 表单树插件 -->
    <script th:src="@{/ajax/libs/bootstrap-treetable/bootstrap-treetable.js}"></script>
    <!-- echarts -->
    <script th:src="@{/ajax/libs/chart/echarts.min.js}"></script>
    <!--星级评分-->
    <link th:href="@{/ajax/libs/raty/jquery.raty.css}" rel="stylesheet"/>
    <script th:src="@{/ajax/libs/raty/jquery.raty.js}"></script>
    <!-- jquery-export 表格导出插件 -->
    <script th:src="@{/ajax/libs/bootstrap-table/extensions/export/bootstrap-table-export.js}"></script>
    <script th:src="@{/ajax/libs/bootstrap-table/extensions/export/tableExport.js}"></script>
    <!--summernote-->
    <script th:src="@{/ajax/libs/summernote/summernote.min.js}"></script>
    <script th:src="@{/ajax/libs/summernote/summernote-zh-CN.js}"></script>
    <!-- form文件提交 -->
    <script th:src="@{/ajax/libs/form/jquery.form.min.js}"></script>
    <!-- 遮罩层 -->
    <script th:src="@{/ajax/libs/blockUI/jquery.blockUI.js}"></script>
    <script th:src="@{/ajax/libs/iCheck/icheck.min.js}"></script>
    <script th:src="@{/ajax/libs/layer/layer.min.js}"></script>
    <script th:src="@{/ajax/libs/layui/layui.js}"></script>
    <script th:src="@{/project/js/common.js?v=3.0.0}"></script>
    <script th:src="@{/project/js/ry-ui.js?v=3.0.0}"></script>
    <!--<script src="http://tajs.qq.com/stats?sId=62048022"></script>-->
    <script th:inline="javascript"> var ctx = [[@{/}]]; </script>
</div>
<div th:fragment="footer_normal">
    <script th:src="@{/js/jquery.min.js}"></script>
    <script th:src="@{/js/jquery-ui-1.10.4.min.js}"></script>
    <script th:src="@{/js/bootstrap.min.js}"></script>
    <script th:src="@{/js/jquery.flexslider-min.js}"></script>
    <!-- bootstrap-table 表格插件 -->
    <script th:src="@{/ajax/libs/bootstrap-table/bootstrap-table.min.js}"></script>
    <script th:src="@{/ajax/libs/bootstrap-table/locale/bootstrap-table-zh-CN.min.js}"></script>
    <script th:src="@{/ajax/libs/bootstrap-table/extensions/mobile/bootstrap-table-mobile.min.js}"></script>
    <script th:src="@{/ajax/libs/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.min.js}"></script>
    <!-- jquery-validate 表单验证插件 -->
    <script th:src="@{/ajax/libs/validate/jquery.validate.min.js}"></script>
    <script th:src="@{/ajax/libs/validate/messages_zh.min.js}"></script>
    <script th:src="@{/ajax/libs/validate/jquery.validate.extend.js}"></script>
    <!-- form文件提交 -->
    <script th:src="@{/ajax/libs/form/jquery.form.min.js}"></script>
    <!--星级评分-->
    <link th:href="@{/ajax/libs/raty/jquery.raty.css}" rel="stylesheet"/>
    <script th:src="@{/ajax/libs/raty/jquery.raty.js}"></script>
    <!--自定义分页组件-->
    <link th:href="@{/project/pagination/pagination-component.css}" rel="stylesheet"/>
    <script th:src="@{/project/pagination/pagination-component.js}"></script>

    <script th:src="@{/project/public.js}"></script>

    <!-- 遮罩层 -->
    <script th:src="@{/ajax/libs/blockUI/jquery.blockUI.js}"></script>
    <script th:src="@{/ajax/libs/layer/layer.min.js}"></script>
    <script th:src="@{/ajax/libs/layui/layui.js}"></script>
    <script th:src="@{/project/js/common.js?v=3.0.0}"></script>

    <script th:src="@{/project/js/ry-ui.js?v=3.0.0}"></script>
    <script th:inline="javascript"> var ctx = [[@{/}]]; </script>
</div>
<div th:fragment="normal_headDiv">
    <div class="wrapper clearfix">
        <div class="clearfix" id="top">
<!--            style="width: 271px;height:77px;margin-top: 0px;margin-left: -50px"-->
            <h1 class="fl"><a th:href="@{/index}"><img th:src="@{/img/logo.png}" style="width: 271px;height:80px;margin-top:-7px;margin-left: -57px"/></a></h1>
            <div class="fr clearfix" id="top1">
                <p class="fl">
                    <a th:if="${session.currentUser==null}" th:href="@{/login}">登录</a>
                    <a th:if="${session.currentUser==null}" th:href="@{/register}">注册</a>
                    <a th:if="${session.currentUser!=null}" class="login_info fl">
                        <em th:text="${session.currentUser.userName}"></em>，您好！
                    </a>
                    <a th:if="${session.currentUser!=null}" th:href="@{/logout}">注销</a>
                </p>
                <form th:attr="action=@{/index/searchGoods}" method="get" class="fl">
                    <input type="text" name="keyWords" id="keyWords" th:value="${keyWords}" placeholder="搜索"/>
                    <input type="submit" value=""/>
                </form>
                <div class="btn fl clearfix">
                    <a th:href="@{/user/info}"><img th:src="@{/img/grzx.png}"/></a>
                    <a th:href="@{/user/userCart}"><img th:src="@{/img/gwc.png}"/></a>
<!--                    <a th:href="@{/vip/toVip}" th:if="${session.currentUser!=null}"><img width="20px" height="20px" th:src="@{/img/vip.jpg}"/></a>-->
                </div>
            </div>
        </div>
        <ul class="clearfix" id="bott">
            <li><a th:href="@{/index}">首页</a></li>
            <li>
                <a th:href="@{/index/searchGoods}">所有餐品</a>
            </li>
            <li>
                <a href="javascript:void(0)">食堂分类</a>
                <div class="sList2">
                    <div class="clearfix" th:with="types=${@dict.getType('goods_type_item')}">
                        <a th:each="typeObj,indexObj:${types}"
                           th:href="@{/index/searchGoods(dictCode=${typeObj.dictCode})}"
                           th:text="${typeObj.dictLabel}"></a>
                    </div>
                </div>
            </li>
        </ul>
    </div>
</div>

<div th:fragment="normal_footerDiv">
    <!--返回顶部-->
    <div class="add_jump"></div>
    <div class="gotop">
        <a th:href="@{/user/userCart}" id="overall_cart">
            <dl class="goCart">
                <dt><img th:src="@{/img/gt1.png}"/></dt>
                <dd>去购<br/>物车</dd>
                <span th:text="${session.currentCartNum==null?'0':session.currentCartNum}"></span>
            </dl>
        </a>
        <a th:href="@{/user/info}">
            <dl>
                <dt><img th:src="@{/img/gt3.png}"/></dt>
                <dd>个人<br/>中心</dd>
            </dl>
        </a>
        <a href="#" class="toptop" style="display: none">
            <dl>
                <dt><img th:src="@{/img/gt4.png}"/></dt>
                <dd>返回<br/>顶部</dd>
            </dl>
        </a>
        <!--<p>400-800-8200</p>-->
    </div>

    <!-------------------login-------------------------->
    <!--footer-->
    <div class="footer">
        <p class="dibu">网上订餐管理系统&copy;2020-2021版权所有<br/>
            Copyright:武理软工小组</p>
    </div>
</div>
<div th:fragment="normal_headDiv2">
    <div class="wrapper clearfix">
        <div class="clearfix">
            <h1 class="fl"><a th:href="@{/index}"><img th:src="@{/img/logo.png}" style="width: 271px;height:77px;margin-top: 5px;margin-left: -50px"/></a></h1>
            <div class="fr clearfix">
                <form th:attr="action=@{/index/searchGoods}" method="get" class="fl">
                    <input type="text" name="keyWords" id="keyWords" th:value="${keyWords}" placeholder="搜索"/>
                    <input type="submit" value=""/>
                </form>
            </div>
        </div>
        <ul class="clearfix">
            <li><a th:href="@{/index}">首页</a></li>
            <li>
                <a th:href="@{/index/searchGoods}">所有餐品</a>
            </li>
            <li>
                <a href="javascript:void(0)">食堂分类</a>
                <div class="sList2">
                    <div class="clearfix" th:with="types=${@dict.getType('goods_type_item')}">
                        <a th:each="typeObj,indexObj:${types}"
                           th:href="@{/index/searchGoods(dictCode=${typeObj.dictCode})}"
                           th:text="${typeObj.dictLabel}"></a>
                    </div>
                </div>
            </li>
        </ul>
    </div>
</div>

<div th:fragment="normal_left_menu">
    <ul style="min-height: 350px;margin: 10px auto 30px;;">
        <li>
            <img style="width: 50px;height: 50px;border-radius: 50px" th:src="${session.currentUser.avatar}">
            <span style="vertical-align: text-bottom;">
				<span th:text="${session.currentUser.userName}"></span>
				<span th:if="${session.currentUser.isvip =='Y'}">(会员)</span>
			</span>
        </li>
        <li th:attr="class=${menuType eq 'info'?'on':''}"><a th:href="@{/user/info}">个人信息</a></li>
        <li th:attr="class=${menuType eq 'order'?'on':''}"><a th:href="@{/user/order}">我的订单</a></li>
        <li th:attr="class=${menuType eq 'remark'?'on':''}"><a th:href="@{/user/remark}">我的评价</a></li>
        <li th:attr="class=${menuType eq 'prefer'?'on':''}"><a th:href="@{/user/prefer}">我的收藏</a></li>
        <li th:attr="class=${menuType eq 'browse'?'on':''}"><a th:href="@{/user/browse}">浏览记录</a></li>
        <li th:attr="class=${menuType eq 'addr'?'on':''}"><a th:href="@{/user/addr}">收货地址</a></li>
        <li><a th:href="@{/logout}">退出登录</a></li>
    </ul>
</div>
